<%--
  Author: Al-assad 余林颖
  E-mail: yulinying_1994@outlook.com
  Date: 2017/12/22 17:00 
  Description:
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>用户注册</title>
    <style> .error{color:darkred} </style>
</head>
<body>
<jsp:useBean id="user" class="site.assad.domain.User" scope="request" />
<form:form action="/user/handleRegister" method="post" modelAttribute="user">

    用户名：<form:input path="userName" /><br/>
    <form:errors path="userName" cssClass="error"/><br />
    密码：<form:input path="password" /><br/>
    <form:errors path="password"/><br />
    Email：<form:input path="email" cssClass="error" /><br/>
    <form:errors path="email"/><br />
    生日（格式"yyyy-MM-dd"）：<form:input path="birthday" /><br/>
    <form:errors path="birthday" cssClass="error"/><br />

    <input type="submit" value="提交" />
    <input type="reset" value="重置" /><br/>
</form:form>


</body>
</html>
